package router

import (
	"github.com/gin-gonic/gin"
	"sgo/app/client/controller"
	"sgo/scontext"
	"sgo/wrapper"
)

type Client struct{}

func (Client) use(sc *scontext.SgoContext, r *gin.RouterGroup) {
	rg := r.Group("/redis")
	{
		rc := controller.RedisController{}
		rg.GET("/string", wrapper.HandlerFunc(sc, rc.StringSetAndGet))
	}
}
